<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
<%@ include file="/template.jsp" %>
<!-- 当前页面为用户领取优惠券页面（输入手机号、验证码） -->
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
</head>
<body>
	
	<input type="hidden" id="timestamp" value="${validation.timestamp}" />
	<input type="hidden" id="nonceStr" value="${validation.nonceStr}" />
	<input type="hidden" id="signature" value="${validation.signature}" />

	<!-- 用于接收错误信息 -->
	<input id="errorMsg" value="${errorMsg}" type="hidden" />
	
	<div class="container-fluid">
		<div class="row">
			<div class="col-xs-12 top-banner">
			</div>
		</div>
	</div>
	
	<form action="userCouponAction!getCashCoupon.action" method="post" onsubmit="return validateForm()">
		
		<!-- 优惠券类型（1：出行券   2：洗车券） -->
		<input id="couponType" name="couponType" value="${couponType}" type="hidden"/>
		
		<!-- 优惠券金额 -->
		<input id="couponMoney" name="couponMoney" value="${couponMoney}" type="hidden" />
		
		<!-- 微信用户openId -->
		<input id="openId" name="openId" value="${openId}" type="hidden">
		
		<!-- 推广商id -->
		<input id="advId" name="advId" value="${advId}" type="hidden">
													
		<div class="container-fluid reg-module">
			<div class="row">
				<div class="col-xs-10 col-xs-offset-1"><input type="text" class="form-control st-line-item" placeholder="手机号" name="tellphone" id="tellphone"></div>
			</div>
			<div class="row">
				<div class="col-xs-6 col-xs-offset-1"><input type="text" class="form-control st-line-item" placeholder="验证码" name="verifyCode" id="verifyCode"></div>
				<div class="col-xs-3 col-xs-offset-1"><button class="btn btn-danger get-verifcode-btn" type="button" onclick="getVerifyCode()" id="getVerifyBtn">获取验证码</button></div>
			</div>
			<div class="row xicheline">
				<div class="col-xs-10 col-xs-offset-1"><input id="submitBtn" class="btn btn-danger st-line-item xiche-btn" type="submit" value="领取洗车券"></input></div>
			</div>
		</div>
	</form>
	
	<div class="conpon-detail-content">
		<div class="title">使用说明</div>
		<div class="content chuxing-rule">
			<li>1.叮叮搭车免费洗车券不限使用地域。</li>
			<li>2.叮叮搭车免费洗车券不限使用帐号。</li>
			<li>只需提供未使用过的洗车二维码，即可在全国范围指定的洗车点免费为您的爱车做一次<div onclick="">清洗。</div></li>
		</div>
	</div>
	
	<script type="text/javascript">
		
		function onpenIdShow(){
			alert($("#openId").val());
		}
	
	</script>
	<script src="js/coupon/couponindex.js"></script>
</body>
</html>